/*
 * CBird.h
 *
 *  Created on: Apr 7, 2014
 *      Author: sev_user
 */

#ifndef CBIRD_H_
#define CBIRD_H_
#include "cocos2d.h"
USING_NS_CC;
class CBird : public CCSpriteBatchNode{
public:
	CBird();
	virtual ~CBird();
	static CBird* createBird();
	void initBird();
	void update(float dt);
	void gotShot();
	CCRect getboundingbox();
	float getXpos();
	float getYpos();
	int getState();
	void setSpeedX(float speed);
	void setSpeedY(float speed);
	void startAnimation();
private:
	float falling_speed;
	int bird_state;
	float speedX;
};

#endif /* CBIRD_H_ */
